package com.xw.childhealth.exception;

import com.xw.childhealth.enums.ResultEnum;

/**
 * @Description:
 * @Author: y
 * @CreateDate: 2019-11-18 08:54
 * @Version: 1.0
 */
public class ChildHealthException extends RuntimeException {

    private Integer code;

    public ChildHealthException(ResultEnum resultEnum) {
        super(resultEnum.getMsg());
        this.code = resultEnum.getCode();
    }

    public ChildHealthException(Integer code, String msg) {
        super(msg);
        this.code = code;
    }
}
